{% extends "blogs/base.html" %}
{% load bootstrap3 %}

{% block javascript %}
<link href="/static/mdeditor/css/editormd.css" type="text/css" media="all" rel="stylesheet">
<script type="text/javascript" src="/static/mdeditor/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/mdeditor/js/editormd.min.js"></script>
{% endblock javascript %}

{% block header %}
	<h2><a href="{% url 'blogs:topics' %}">所有版块</a> - 
	<a href="{% url 'blogs:topic' topic.id %}">{{ topic }}</a> -
	新建Blog
	</h2>
{% endblock header %}

{% block content %}
	<form action="{% url 'blogs:new_blog' topic.id %}" method='post' class="form">
		{% csrf_token %}
		{{ form.media }}
		{{ form.as_p }}
		
		 <p><input type="submit" value="提交" class="btn btn-primary"></p>
	</form>
{% endblock content %}
